<template>
	<view style="padding-bottom: 100upx;" class="home">	
		<!-- :style="'height:'+winHeight" -->
		<scroll-view style=""  @scroll="scroll2"
		scroll-y="true" scroll-with-animation="true">
		<view class="seat"></view>
		<!-- #ifdef MP-WEIXIN -->
			<uni-nav-bar   :border="border" backgroundColor="#f2bed2;">	
				<view style="height: 50upx;line-height: 50upx;color: #fff;font-size: 30upx;margin-left: -80px;" class="">
					<view class="flex">
						<view class="back" @click="back()" style="width: 60rpx; height: 60rpx;border-radius: 50%;margin-left: 20rpx;">
							<image style="width: 60rpx; height: 60rpx;border-radius: 50%;" src="/static/images/zixun_lt.jpg" mode=""></image>
						</view>
						<view style="padding: 0 20rpx;position: relative;">
							<view class="fl LoginIco">
								<image style="width: 60upx;height: 60upx;" src="/static/images/108.png" mode=""></image>
							</view>
							<view  class="input1">
								<input @click="toSearch()" v-model="searchValue" class="tac fs21 Cccc" type="text" placeholder="搜索商品名称"  value="" />
							</view>
						</view> 
					</view>
				</view>					
			</uni-nav-bar>
		<!-- #endif -->
		
		<!-- #ifdef APP-PLUS || H5 -->			
			<view class="homeTop">
				<view style="background-color: #f2bed2;" class="status_bar">
					<view style="background-color: #f2bed2;" class="top_view"></view>  
				</view> 		
				<view class="" >
					<view class="flex">
						<view class="back" @click="back()" style="width: 70rpx; height: 70rpx;border-radius: 50%;margin-left: 20rpx;">
							<image style="width: 70rpx; height: 70rpx;border-radius: 50%;" src="/static/images/zixun_lt.jpg" mode=""></image>
						</view>
						<view style="padding: 0 20rpx;position: relative;">
							<view class="fl LoginIco">
								<image style="width: 60upx;height: 60upx;" src="/static/images/108.png" mode=""></image>
							</view>
							<view  class="input1">
								<input @click="toSearch()" v-model="searchValue" class="tac fs21 Cccc" type="text" placeholder="搜索商品名称"  value="" />
							</view>
						</view>
					</view>
				</view>			
			</view>		
		<!-- #endif -->
		<view class="seat2"></view>
		
		<view v-for="(xxx,index) in allDatas" :key="index">			
			<view v-if="xxx.hasOwnProperty('adv_list')">
				<view style="width:712;height:300;margin:0 auto;padding-top: 0upx;" class="">
					<view class="page-section-spacing">
						<swiper class="swiper1" 
							:circular="circular"
							:indicator-dots ="indicatorDots"
							autoplay="true" 
							interval="2000" 
							duration="500"	>					
							<swiper-item v-for="(lb,index2) in xxx.adv_list.item" :key="index2">
								<image @click="commonNavto(lb.data,lb.type)"  style="width: 100%;" :src="lb.image" mode="widthFix"></image>
							</swiper-item>		
						</swiper>				
					</view>
				</view>	
			</view>
		
			
			<view v-if="xxx.hasOwnProperty('notice_list')" v-for="(scrolltip,index2) in xxx" :key="index2" class="swiper1B">
				<!-- <marquee behavior="" direction="">{{scrolltip.item[0].notice_list_name}}</marquee>			 -->
				<view style="width:500;height:80upx;margin:0 auto;" class="">
					<view class="page-section-spacing">
						<swiper class="swiper1" 
							vertical="true"
							:circular="circular"
							:indicator-dots="indicatorDots"
							autoplay="true" 
							interval="4000" 
							duration="400"	>					
							<swiper-item v-for="(aa,index2) in scrolltip.item" :key="index2">								
								<view style="display: inline-block;padding-top: 4upx;padding-right: 30upx;width: 600upx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" @click="commonNavto(aa.notice_list_data,aa.notice_list_type)" >{{aa.notice_list_name}}</view>								
								 
							</swiper-item>		
						</swiper>				
					</view>
				</view>	
			</view>
			
			
			<view v-if="xxx.hasOwnProperty('home3')">
				<view v-for="(images1,index3) in xxx" :key="index3" style="display: flex;justify-content: space-between;padding: 0 20upx;flex-wrap: wrap;" class="">	
					<image @click="commonNavto(images2.data,images2.type)" v-for="(images2,index4) in images1.item" :key="index4" style="width: 345upx;margin-top: 20upx;" :src="images2.image" mode="widthFix"></image>				
				</view>
			</view>
			
			<view v-if="xxx.hasOwnProperty('home5')">
				<view v-for="(images1,index4) in xxx" :key="index4" style="display: flex;justify-content: space-between;padding: 0 20upx;margin-top: 40upx;" class="">
				 	<image @click="commonNavto(images2.data,images2.type)" v-for="(images2,index5) in images1.item" :key="index5" style="width: 231upx;" :src="images2.image" mode="widthFix"></image>		 	
				 </view>
			</view>
			
			<!-- <view v-if="xxx.hasOwnProperty('goods')">
				<view v-for="(good,index6) in xxx" :key="index6" class="products">
					<view @click="toDetail(good2.goods_id)"  v-for="(good2,index7) in good.item" :key="index7" class="product">
						<image :src="good2.goods_image" mode="widthFix"></image>
						<view class="productInfo twoline lh35 C333">{{good2.goods_name}}</view>
						<view class="lh50 productP">
							<text class="Ce13d97 fs22">￥{{good2.goods_promotion_price}}</text> <text class="fs18 C999 pl20">销量：{{good2.goods_salenum || 0}}</text>					
						</view>
					</view>					
				</view>
			</view> -->
			<view v-if="xxx.hasOwnProperty('goods')">
				<view v-for="(good,index6) in xxx" :key="index6" class="products">
					<view @click="toDetail(good2.goods_id)"  v-for="(good2,index7) in good.item" :key="index7" class="product">
						
						<view class="ImgBox"><image :src="good2.goods_image" mode="widthFix"></image></view>
						<view class="productInfo twoline lh35 C333">{{good2.goods_name}}</view>
						<view class="lh50 productP">
							
							<text class="Ce13d97 fs22">￥{{good2.goods_promotion_price}}</text> <text class="fs18 C999 pl20">销量：{{good2.goods_salenum || 0}}</text>
						</view>
					</view>					
				</view>
			</view>
			
			<view v-if="xxx.hasOwnProperty('home1')" v-for="(scrolltip,index2) in xxx" :key="index2">
				<view v-if="scrolltip.title" v-for="(title1,index8) in xxx" :key="index8" class="title"  @click="commonNavto(title1.data,title1.type)">
					{{title1.title}}
				</view>
				<view style="width: 100%; font-size: 0;" v-if="scrolltip.image" class="scrolltip.image" @click="commonNavto(xxx.home1.data)">
					<image style="width: 100%;height: 10rpx;" :src="scrolltip.image" mode="widthFix"></image>
				</view>
				
				<!-- <view @click="commonNavto(title1.data,title1.type)" v-if="title1.title" v-for="(title1,index8) in xxx" :key="index8" class="title">
					{{title1.title}}
				</view>
				<view style="width: 100%;" v-if="scrolltip.image" class="">
					<image @click="commonNavto(title1.data,title1.type)" style="width: 100%;height: 320upx;margin-top: 60upx;" :src="title1.image" mode="widthFix"></image>
				</view> -->
			</view>
			
			
			<view v-if="xxx.hasOwnProperty('home2')">
				<view v-for="(onetwo,index9) in xxx" :key="index9" style="display: flex;justify-content: space-between;padding: 0 20upx;height: 345upx;margin-top: 40upx;">
					<view class="">
						<image @click="commonNavto(onetwo.square_data,onetwo.square_type)" style="width: 345upx;height: 345upx;" :src="onetwo.square_image" mode=""></image>			
					</view>				
					<view style="display: flex;justify-content: space-between;flex-direction: column;">
						<image @click="commonNavto(onetwo.rectangle1_data,onetwo.rectangle1_type)" style="width: 345upx;" :src="onetwo.rectangle1_image" mode="widthFix"></image>
						<image @click="commonNavto(onetwo.rectangle2_data,onetwo.rectangle2_type)" style="width: 345upx;" :src="onetwo.rectangle2_image" mode="widthFix"></image>
					</view>
				</view>
			</view>
			
			<view v-if="xxx.hasOwnProperty('home4')">
				<view v-for="(onetwo,index10) in xxx" :key="index10" style="display: flex;justify-content: space-between;padding: 0 20upx;height: 345upx;margin-top: 40upx;">
					<view style="display: flex;justify-content: space-between;flex-direction: column;">
						<image @click="commonNavto(onetwo.rectangle1_data,onetwo.rectangle1_type)" style="width: 345upx;" :src="onetwo.rectangle1_image" mode="widthFix"></image>
						<image @click="commonNavto(onetwo.rectangle2_data,onetwo.rectangle2_type)" style="width: 345upx;" :src="onetwo.rectangle2_image" mode="widthFix"></image>
					</view>
					<view class="">
						<image @click="commonNavto(onetwo.square_data,onetwo.square_type)" style="width: 345upx;height: 345upx;" :src="onetwo.square_image" mode="widthFix"></image>			
					</view>				
				</view>
			</view>
			<view  v-if="xxx.hasOwnProperty('home6')">
				<view v-for="(onefour,index11) in xxx" :key="index11" class="home6Style">
					<image @click="commonNavto(onefour2.data,onefour2.type)" v-for="(onefour2,index12) in onefour.item" :key="index12" style="width: 162upx;height: 162upx;" :src="onefour2.image" mode="widthFix"></image>							
				</view>
			</view>
			
			<view  v-if="xxx.hasOwnProperty('navigation')"  style="background-color: #FFFFFF;border-radius: 10rpx;">
					<view v-if="xxx.navigation.item.length<=5"  style="background-color: #FFFFFF;">
						<view class="" style="display: flex;flex-wrap:wrap;padding-left: 8upx;">
							<view @click="test1(item.navigation_data)" class="logoLi" v-for="(item,index2) in xxx.navigation.item" :key="index2">
								<image :src="item.image" mode="widthFix"></image>
								<view class="fs21 C333">{{item.navigation_name}}</view>
							</view>
						</view>
						
					</view>	
						
					<scroll-view v-else scroll-x="true"  style="background-color: #FFFFFF;">
							<view :style="'width:'+iconWidth+'upx'">
								<view class="" style="display: flex;flex-wrap:wrap;padding-left: 8upx;">
									<view @click="test1(item.navigation_data)" class="logoLi" v-for="(item,index2) in xxx.navigation.item" :key="index2">
										<image :src="item.image" mode="widthFix"></image>
										<view class="fs21 C333">{{item.navigation_name}}</view>
									</view>
								</view>
							</view>
					</scroll-view>
				
			</view>
			
		</view>
		
		

	<!-- 		
			<view style="display: none;" class="products">
				<view  @click="goodsInfo(item.goods_id)" v-for="(item,index) in allDatas[17].goods.item" :key="index" class="product">
					<image :src="item.goods_image" mode=""></image>
					<view class="productInfo twoline lh35 C333">{{item.goods_name}}</view>
					<view class="lh50 productP">
						<text class="Ce13d97 fs22">￥{{item.goods_price}}</text> <text class="strick fs18 C999 pl20">￥{{item.goods_marketprice}}</text>					
					</view>
				</view>				
			</view> -->
		  
		
		 
		<!-- 底部导航 -->
		<!-- <view ref="bottomBar" class="searchB" :class="[(bottomFlag == true) ? 'searchBActive':'']">
		 	<view :class ="[(active1flag == index) ? 'active1':'']" @click="tab(index,item.gc_id)"  class="searchBLi" v-for="(item,index) in bottonNames" :key="index">
		 		{{item.gc_name}}
		 	</view>
		 </view>
		 
		 <view style="" class="products">
		 	<view  @click="goodsInfo(item.goods_id)" v-for="(item,index) in bottonLis" :key="index" class="product">
		 		<image :src="item.goods_image_url" mode=""></image>
		 		<view class="productInfo twoline lh35 C333">{{item.goods_name}}</view>
		 		<view class="lh50 productP">
		 			<text class="Ce13d97 fs22">￥{{item.goods_price}}</text> <text class="strick fs18 C999 pl20">￥{{item.goods_marketprice}}</text>					
		 		</view>
		 	</view>				
		 </view> -->
		 
		 </scroll-view>
		
		 
	</view>
	
</template>

<script>
	import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue';
	// #ifdef H5
		const share = require("@/store/share.js")
	// #endif
	export default {
		components: {
			uniNavBar
		},
		data() {
			return {
				border:false,
				special_id:0,
				city:"",
				winHeight:'100%',
				bottonLis:[],
				bottonLisFirstid:"1",
				allDatas:[],
				searchValue:"",
				slidesPerView:4,
				isLogin:false,
				key:"",
				shi:78,
				fen:34,
				miao:12,
				allMiao:0,
				indicatorDots:false,
				circular:true,	
				active1flag:0,
				active2flag:0,
				bottomFlag:false,
				bottonNames:[],
				homeList:[],
				miaosha:"",
				tuijian:"",
				iconWidth:0,
				shareInfo:""
			}
		},
		onShow() {
		
			this.key=uni.getStorageSync('key')
		},
		onLoad(options) {	
			this.special_id=options.special_id
			
			let routes = getCurrentPages(); 
			this.shareUrl2="/"+routes[routes.length - 1].route + '?special_id=' + this.special_id 
			this.key=uni.getStorageSync('key')
			this.djs()
			this.getLis()
			this.getBottonNames()
			this.getshareInfo()
		},
		// 小程序分享
		onShareAppMessage(res) {
			// title:this.shareInfo.title, // 分享标题
			// desc:this.shareInfo.desc, // 分享描述  
			// link:  this.$share+"/?#/pages/home/home2?special_id="+this.special_id, // 分享链接  
			// imgUrl:this.shareInfo.pic, // 分享图标  
			return {
				title:this.shareInfo.title,
				path: this.shareUrl2,
				imageUrl:this.shareInfo.pic
			}
		},
		methods: {
			back(){
				let pages = getCurrentPages(); // 当前页面
				if(pages.length > 1){
					uni.navigateBack({})
				}else{
					uni.switchTab({
						url:"home"
					})
				}
			},
			Adv(notice_list_data){
				console.log(notice_list_data)
				let aa=notice_list_data.replace(/amp;/g,"")
				aa=aa.trim()
				console.log(aa)
				uni.navigateTo({
					url:aa
				})				
			},
			scroll2(e){
				console.log(e.detail.scrollTop)
			},
			tohome(){
				uni.switchTab({
					url:'home'
				})
			},
			commonNavto(url,type){
				url=url.replace(/amp;/g,"")
				url=url.trim()	
				console.log(url)
				if(url.indexOf('/home') != -1){					
					uni.switchTab({
						url:url
					})
				}
				else if(url.indexOf('/category/classification') != -1){
					uni.switchTab({
						url:url
					})
				}
				else if(url.indexOf('/distribution/list') != -1){
					uni.switchTab({
						url:url
					})
				}
				else if(url.indexOf('/cart/list') != -1){
					uni.switchTab({
						url:url
					})
				}
				else if(url.indexOf('/member/index') != -1){
					uni.switchTab({
						url:url
					})
				}
				else if(type == 'url'){
					uni.navigateTo({
						url:url
					})
				}else if(type == 'keyword'){
					uni.navigateTo({
						url:"/mall/search/searchLis?searchValue="+url
					})
				}else if(type == 'goods'){
					uni.navigateTo({
						url:"/mall/goods/info?goods_id="+url
					})
				}else if(type == 'special'){
					uni.navigateTo({
						url:"/mall/special/index?special_id="+this.special_id
					})
				}
				
				
				
			},
			toDetail(id){
				uni.navigateTo({
					url:"/mall/goods/info?goods_id="+id								
				})
			},
			test1(url1){
				if(url1 == 0){
					uni.showToast({
						title:"没有找到页面"
					})
				}
				else if(url1 == '../sort/sortPage'){
					uni.switchTab({
						url:'../sort/sortPage'
					})
				}else{
					uni.navigateTo({
						url:url1
					})
				}
			},
			//跳详情
			goodsInfo(id){
				uni.navigateTo({
					url:'/mall/goods/info?goods_id='+id
				})
			},
			getBottonLis(){
				var that=this		
				this.$util.request({
					url: '/mobile/index.php?act=goods&op=goods_list',
					method: 'get',
					data: {
						"gc_id":that.bottonLisFirstid
					},
				}).then(function(res) {
				    that.bottonLis=res.datas.goods_list
					
				})
			},
			getshareInfo(){
				var that=this		
				this.$util.request({
					url: '/mobile/index.php?act=index&op=special_info',
					method: 'get',
					data: {special_id:this.special_id},
				}).then((res)=> {	
						if(res.error_code==0){
							this.shareInfo=res.datas
							// #ifdef H5
								let shareInfo={
									title: res.datas.title, // 分享标题
									desc: res.datas.desc, // 分享描述  
									link:  this.$share+"/?#/pages/home/home2?special_id="+this.special_id, // 分享链接  
									imgUrl:res.datas.pic, // 分享图标       
								}
								share.share(shareInfo)
							// #endif
						}
					
				})	
			},
			getBottonNames(){
				var that=this		
				this.$util.request({
					url: '/mobile/index.php?act=index&op=recommend_class',
					method: 'get',
					data: {
					
					},
				}).then((res)=> {					
					this.bottonNames=res.datas.list
					this.$util.request({
						url: '/mobile/index.php?act=goods&op=goods_list',
						method: 'get',
						data: {
							"gc_id":res.datas.list[0].gc_id
						},
					}).then((res)=> {
					    this.bottonLis=res.datas.goods_list						
					})
					
				})
			},
			getLis(){
				var that=this		
				this.$util.request({
					url: '/mobile/index.php?act=index&op=special',
					method: 'get',
					data: {
						"special_id":this.special_id
					},
				}).then(function(res) {
					that.allDatas=res.datas
					res.datas.map((item,index)=>{
						if(item.hasOwnProperty('navigation')){
							that.iconWidth=Math.ceil(that.allDatas[index].navigation.item.length/2)*146 + 8
						}
					})
				})
			},
			djs(){
				this.allMiao=3600*this.shi+this.fen*60+this.miao;
				 var tt=setInterval(()=>{
					 this.allMiao--;
					 this.shi=parseInt(this.allMiao/3600); 
					 this.fen=parseInt((this.allMiao%3600)/60);
					 this.miao=this.allMiao-this.shi*3600-this.fen*60;
					 // console.log(this.allMiao,this.shi,this.fen,this.miao);
					 	if(this.shi<10){
					 		this.shi='0'+this.shi
					 	}
					 	if(this.fen<10){
					 		this.fen='0'+this.fen
					 	}
					 	if(this.miao<10){
					 		this.miao='0'+this.miao
					 	}					 											 	
					 	if(this.allMiao == 0){
					 		clearInterval(tt);
					 		console.log("时间到")
					 	}
					 
				 },1000)								
			},
			tab(index,id){
				console.log(index,id)
				this.active1flag=index;
				this.bottonLisFirstid=id;
				this.getBottonLis();
			},
			tab2(index){
				this.active2flag=index
				console.log(this.active2flag)
			},
			toUrl(url1){
				console.log(url1)
				uni.navigateTo({
					url:url1
				})	
			},
			toLogin(){
				uni.navigateTo({
					url:"/mainA/login/login"
				})
			},
			toSearch(){
				uni.navigateTo({
					url:"/mall/search/searchLis?searchValue="+this.searchValue
					// url:"../../pagesA/pages/search/searchLis"
				})	
			},
			onReachBottom(e) {
				// console.log("触底")
				// console.log(e)
				// this.bottomFlag=true
			}			
		},
	
	}
</script>

<style>
	/* uni-scroll-view::-webkit-scrollbar {
	    width: 0;
	    height: 0;
	    background-color: transparent !important;
	} */
	.home6Style{display: flex;justify-content: space-between;margin: 0 20upx !important;height: 162upx;margin-top: 40upx;background-color: #FFFFFF;border-radius: 10rpx;}
	.TitleName{
		line-height: 80rpx;
		text-align: center;
		color: #fff;
		font-size: 40rpx;
		font-weight: bold;
	}
	.LoginIco{
		position: absolute;
		left: 30rpx;
		top: 5rpx;
		z-index: 10;
		
	}
	.swiperLast{
		height: 50upx;
		margin-bottom: 120upx;
	}
	.status_bar {
	    height: var(--status-bar-height);  
	    width: 100%;  
	    background-color: #d7d3d5;
	}  
	.top_view {  
	    height: var(--status-bar-height);  
	    width: 100%;  
	    position: fixed;  
	    background-color: #d7d3d5;  
	    /* background-color: #fca2a2;  */
	    top: 0;  
	    z-index: 999;  
	}
	.lh20{
		line-height: 20upx;
		height: 20upx;
	}
	.lh25{
		line-height: 25upx;
	}
	.lh30{
		line-height: 30upx;
	}
	.lh35{
		line-height: 35upx;
	}
	.lh40{
		line-height: 40upx;
	}
	.lh45{
		line-height: 45upx;
	}
	.lh50{
		line-height: 50upx;
	}
	.C000{
		color: #000000;
	}
	.Ce13d97{
		color: #ff4300;
	}
	.Cfe0000{
		color: #ff4300;
	}
	.Cc06{
		color: #ff4300;
	}
	.mt55mb30{
		margin-top: 55upx;
		margin-bottom: 30upx;
	}
	.Cfff{
		color: #FFFFFF;
	}

	.flex{		
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-content: space-between;
	}
	.paddingL20{
		padding-left: 20upx;
	}
	.C999{
		color:#999 ;
	}
	.Cff0101{
		color:#ff0101 ;
	}
	.Cc00251{
		color: #c00251;
	}
	.strick{
		text-decoration: line-through;
	}
	.Cfe0000{
		color: #ff4300;
	}
	.line1{
		width: 430upx;
	}
	.hide{
		display: none;
	}
	.marginB20{
		margin-bottom: 20upx;
	}
	
	.twoline{
	   overflow : hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.pl20{
		padding-left: 20upx;
	}
	.positionT{
		position: relative;
		top: 50upx;
	}
	.paddingB15{
		padding-bottom: 15upx;
	}
	.borderB{
		border-bottom: 1px solid #f4f4f6;
	}
	.borderT{
		border-top: 1px solid #f4f4f6;
	}
	.gl{
		position: absolute;
		right: 30upx;
	}
	.pr30{
		padding-right: 30upx;
	}
	.C333{
		color: #333333;
	}
	.C666{
		color: #666666;
	}
	.Cf00{
		color: #ff0000;
	}
	
	.bold{
		font-weight: bold;
	}
	.C1d1d1d{
		color:#1d1d1d ;
	}
	.fl{
		float: left;
	}
	.fr{
		float: right;
	}
	.tac{
		text-align: center;
	}
	.Ce5258e{
		color: #e5258e;
	}
	.Cccc{
		color: #CCCCCC;
	}
	uni-page-body {
		background-color: #FFFFFF !important;
		/* color: rgb(102, 102, 102); */
	}		
	.fs30{
		/* font-size: 30upx */
		font-size: 45upx
	}
	.fs26{
		font-size:39upx
		/* font-size: 26upx */
	}
	.fs12{
		font-size: 18upx
		/* font-size: 12upx */
	}
	.fs16{
		font-size: 24upx
		/* font-size: 16upx */
	}
	.fs14{
		font-size: 21upx
		/* font-size: 14upx */
	}
	.fs15{
		font-size: 22.5upx
		/* font-size: 15upx */
	}
	.fs27{
		font-size: 40.5upx
		/* font-size: 27upx */
	}
	.fs18{
		font-size: 27upx
		/* font-size: 18upx */
	}
	.fs28{
		font-size: 42upx
		/* font-size: 28upx */
	}
	.fs10{
		font-size: 15upx
		/* font-size: 10upx */
	}
	.fs30{
		font-size: 45upx
		/* font-size: 28upx */
	}
	.fs24{
		font-size: 36upx
		/* font-size: 24upx */
	}
	.fs20{
		font-size:30upx
		/* font-size: 20upx */
	}
	.fs22{
		font-size:33upx
		/* font-size: 22upx */
	}
	.fs21{
		font-size: 31.5upx
		/* font-size: 21upx */
	}
	.home{
		background: url(../../static/images/home_topbgc2.png),#FFFFFF;
		background-size: 100% 482upx;
		background-repeat: no-repeat;
		/* padding-top: 20upx; */
	}
	.homeTop{
		box-sizing: border-box;		
		background-color: #f2bed2;
		/* background-color: #d7d3d5; */
		/* background-color: #f72e81; */
		/* background-color: #fca2a2; */
		position: fixed;
		z-index: 9999999;
		left: 0;
		top: 0;
		padding-top: 40rpx;
		/* height: 80upx; */
		width: 100%;
		/* padding: 0 34upx 0 24upx; */
	}
	.homeTop view{
		/* height: 80upx;
		line-height: 80upx;
		padding-top: 2upx; */
	}
	.input1{
		position: relative;
		margin-bottom: 20rpx;
		/* width: 100%;
		background-color: #fca2a2;
		position: fixed;
		z-index: 9999999;
		left: 0;
		top: 80upx; */
	}
	.input1 input{		
		border: 1upx solid #f4f4f4;
		width: 600upx;
		/* #ifdef MP-WEIXIN */
		width: 421upx;
		/* #endif */
		height: 65upx;
		background-color: #FFFFFF;
		border-radius: 15upx;
		/* margin: 10upx auto; */
	}
	.input1::after{
		position: absolute;
		right: 10upx;
		bottom: 4upx;
		display: block;
		content: " ";
		width: 60upx;
		height: 60upx;
		background: url(../../static/images/home_search.png);
		background-size: cover;
		position: absolute;
		/* background: url('../../static/images/home_search.png'),red; */
		
		
	}
	.input1 image{
		position: absolute;
		width: 50upx;
		height: 50upx;
		top: 98upx;
		right: 70upx;
		/* #ifdef APP-PLUS */
			top: 158upx;
		/* #endif */
	}
	.swiper4{
		width: 710upx;
		height: 302upx;
		margin: 0 auto;
	}
	.swiper3{		
		width: 705upx;
		height: 345upx;
		margin: 0 auto;
	}
	.swiper2{
		width: 710upx;
		height: 300upx;
		margin: 0 auto;
	}
	.swiper1{
		width: 712upx;
		height: 300upx;
		margin: 0 auto;
	}
	.swiper1 swiper-item{
		border-radius: 10upx;
	}
	.swiper1 image{
		border-radius: 10upx;
	}
	.swiper1B{
		box-sizing: border-box;
		padding-left: 94upx;
		color: #FFFFFF;
		margin: 10upx auto;
		font-size: 30upx;
		width: 712upx;
		height: 60upx;
		line-height: 60upx;
		background: url(../../static/images/home_lb.png) 34upx 10upx no-repeat,#ffdbdb;
		background-size: 45upx 45upx;
		border-radius: 10rpx;
	}
	.logoLis{
		box-sizing: border-box;
		width: 100%;
		padding: 0 10upx;
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		flex-wrap: wrap;
	}
	.logoLi{
		width: 146upx;
		height: 160upx;
		text-align: center;
	}
	.logoLi image{
		width: 100upx;
		height: 100upx;
		border-radius: 50%;
	}
	.logoLi view{
		line-height: 20upx;
	}
	.title{
		padding-left: 20upx;
		margin-top: 56upx;
		margin-bottom: 10upx;
		font-weight: bold;
		font-size: 36upx;
		color: #333333;
	}
	
	.logo2Lis{
		box-sizing: border-box;
		width: 100%;
		padding: 0 24upx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.logo2Li{
		position: relative;
		z-index: 1;
		width: 340upx;
		height:245upx;
		text-align: center;
		margin-top: 22upx;
		border-radius: 10upx;
	}
	.logo2Li image{		
		width: 340upx;
		height:245upx;		
	}
	.logo2LiName{
		position: absolute;
		z-index: 10;
		left: 31upx;
		top: 34upx;
		font-size: 36upx;
		font-weight: bold;
		color: #FFFFFF;
	}
	.logo2LiDiscount{
		position: absolute;
		z-index: 10;
		left: 31upx;
		top:92upx;
		font-size: 27upx;
		color: #FFFFFF;
	}
	.logo2LiBtn{
		position: absolute;
		z-index: 10;
		left: 31upx;
		top: 187upx;
		width: 146upx;
		height: 36upx;
		line-height: 36upx;
		border-radius: 18upx;
		font-size: 24upx;
		color: #ff4300;
		text-align: center;
		background-color: #fff;
	}
	
	.logo3Lis{
		margin-top: 20upx;
		box-sizing: border-box;
		width: 100%;
		padding: 0 24upx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.logo3Li{
		position: relative;
		z-index: 1;
		width: 230upx;
		height:240upx;
	}
	.logo3Li image{		
		width: 230upx;
		height:240upx;	
	}
	.logo4Lis{
		margin-top: 20upx;
		box-sizing: border-box;
		width: 100%;
		padding: 0 24upx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.logo4Li{
		position: relative;
		z-index: 1;
		width: 231upx;
		height:170upx;
	}
	.logo4Li image{		
		width: 231upx;
		height:170upx;	
	}
	.products{
		padding: 0 24upx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: wrap;
		margin-top: 27upx;
	}
	.product{
		box-sizing: border-box;
		width: 340upx;
		height: 487upx;
		border: 1upx solid #f4f4f4;
		margin-top: 30upx;
		border-radius: 15upx;
	}
	.product image{		
		border-top-left-radius: 10upx;
		border-top-right-radius: 10upx;
		width: 336upx;
		height: 340upx;
	}
	.productInfo{
		padding: 0 10upx;
		min-height: 64upx;
	}
	.productP{
		padding: 0 10upx;
	}
	.bottom{
		box-sizing: border-box;
		padding: 0 10upx;
		background-color: #FFFFFF;
		position: fixed;
		z-index: 99999999999;
		left: 0;
		bottom: 0;
		height: 98upx;
		width: 100%;
		box-shadow: 0upx -1upx 10upx rgba(0,0,0,0.8);
		display: flex;
		flex-direction: row;
		justify-content: space-around;
	}
	.bottom view{
		font-size: 27upx;
		color: #666;
		text-align: center;
	}
	.bottom view.active2{
		color: #ff4300;
	}
	.bottom image{
		position: relative;
		top: 15upx;
		width: 33upx;
		height: 33upx;
	}
	.title2{
		margin-top: 76upx;
		margin-bottom: 0upx;
		height: 35px;
		padding-left: 20upx
	}
	.title2R{
		position: relative;
		top: 6upx;
	}
	.djs{
		
	}
	.djs .shi{
		display: inline-block;
		width: 36upx;
		height: 36upx;
		line-height: 36upx;
		text-align: center;
		font-weight: bold;
		background-color: #ff4300;
		color: #FFFFFF;
		border-radius: 8upx;
	}
	.djs .point{
		display: inline-block;
		width: 26upx;
		height: 36upx;
		line-height: 36upx;
		text-align: center;		
		font-weight: bold;
		color: #ff4300;
	}
	.loginBox{
		box-sizing: border-box;
		width: 100%;
		position: fixed;
		z-index: 999999999;
		left: 0;
		/* #ifdef APP-PLUS */
		bottom: 0;
		/* #endif */
		
		/* #ifdef H5 */
		bottom: 100upx;
		/* #endif */
		
		height: 80upx;
		line-height: 80upx;
		background-color: rgba(0,0,0,0.5);
		padding: 0 20upx;
	}
	.loginBoxL{
		height: 80upx;
		line-height: 80upx;
	}	
	.loginBoxR{
		border-radius: 33upx;
		margin-top: 10upx;
		width: 165upx;
		height: 60upx;
		line-height: 60upx;
		text-align: center;
		background-color: #ff4300;
	}

	.searchB{
		box-sizing: border-box;
		width: 100%;
		overflow-x: scroll;
		overflow-y: hidden;
		white-space: nowrap;
		/* background-color: #FFFFFF; */
		/* border: 1px solid #f4f4f4; */
		line-height: 80upx;
		height: 80upx;
		padding:0 25upx;
		background-color: #FFFFFF !important;
	}
	.searchB.searchBActive{
		z-index: 9999999999999999;
		position: fixed;
		/* #ifdef APP-PLUS */
		top: 0upx;
		/* bottom: 0upx; */
		/* #endif */
		/* #ifdef H5 */
		top: 0upx;
		/* bottom: 100upx; */
		/* #endif */
	}
	.searchBLi{
		display: inline-block;
		padding: 0 15upx;
		font-size: 31upx
	}
	.searchB view.active1{
		font-weight: bold;
		border-bottom:4upx solid #f00; ;
		color: #f00;
	}
	.seat{
		padding-top: 100upx;
		/* #ifdef APP-PLUS */
		padding-top: 150upx;
		/* #endif */
		/* #ifdef H5 */
		padding-top: 100upx; 
		/* #endif */
		/* #ifdef MP-WEIXIN */
		padding-top: 50upx;
		/* #endif */
	}
	.seat2{
		padding-top: 60upx;
		/* #ifdef APP-PLUS */
		padding-top: 150upx;
		/* #endif */
		/* #ifdef H5 */
		padding-top: 60upx; 
		/* #endif */
		/* #ifdef MP-WEIXIN */
		padding-top: 30upx;
		/* #endif */
	}
	.banner1{
		width:712;
		height:300;
		margin:0 auto;
	}
	.product .ImgBox{
		width: 336upx;
		height: 340upx;
		overflow: hidden;
	}
	page{
		/* background-color: #FFFFFF; */
		background-color: rgb(102, 102, 102);
	}		
</style>
